package com.saunter.utils.exception;

import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus
public class CustomException extends RuntimeException {
    private String code;
    private String msg;
    private Object data;
    public CustomException(String code, String msg, Object data) {
        super(code);
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return this.code;
    }
    public String getMsg() {
        return this.msg;
    }
    public String getMessage() {
        return this.msg;
    }
    public Object getData() {
        return data;
    }
}
